//
//  HotCarDetailView.m
//  CarWorld
//
//  Created by yuyu on 15/3/28.
//  Copyright (c) 2015年 CarWorldTeam. All rights reserved.
//

#import "HotCarDetailView.h"

@implementation HotCarDetailView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)dealloc
{
    [_segControl release];
    [_tableView release];
    [super dealloc];
}

- (instancetype)init
{
    if (self=[super init]) {
        CGRect rect = [UIScreen mainScreen].bounds;
        CGFloat with = rect.size.width;
        _segControl = [[UISegmentedControl alloc] initWithFrame:CGRectMake(0, 64,with, 36)];
        _segControl.backgroundColor = [UIColor redColor];
        [self addSubview:_segControl];
        
        _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0,100 , with, rect.size.height-100) style:UITableViewStylePlain];
        [self addSubview:_tableView];
    }
    return self;
}



@end
